﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;

namespace NPMonitor.DataModel
{
    [Table("HttpActionRequests")]
    public class HttpActionRequestsData
    {
        [Column("Id")]
        public long Id { get; set; }

        [Column("ActionId")]
        public long ActionId { get; set; }

        [Column("URL")]
        public string URL { get; set; }

        [Column("Method")]
        public string Method { get; set; }

        [Column("Result")]
        public string Result { get; set; }

        [Column("Error")]
        public string Error { get; set; }

        [Column("ServerIP")]
        public string ServerIP { get; set; }

        [Column("ServerPort")]
        public string ServerPort { get; set; }

        [Column("Started")]
        public string Started { get; set; }

        [Column("BeginTime")]
        public DateTime BeginTime { get; set; }

        [Column("StatusCode")]
        public int StatusCode { get; set; }

        [Column("Time")]
        public decimal Time { get; set; }

        [Column("SendBytes")]
        public int SendBytes { get; set; }

        [Column("ReceivedBytes")]
        public int ReceivedBytes { get; set; }

        [Column("Blocked")]
        public decimal Blocked { get; set; }

        [Column("CacheRead")]
        public decimal CacheRead { get; set; }

        [Column("Connect")]
        public decimal Connect { get; set; }

        [Column("DNSLookup")]
        public decimal DNSLookup { get; set; }

        [Column("Network")]
        public decimal Network { get; set; }

        [Column("Receive")]
        public decimal Receive { get; set; }

        [Column("Send")]
        public decimal Send { get; set; }

        [Column("TTFB")]
        public decimal TTFB { get; set; }

        [Column("Wait")]
        public decimal Wait { get; set; }

    }
}
